
import * as vscode from 'vscode';
import { setupBuildCommand, setupClearCommand } from './commands/index';
import { setupTestWebViewCommand } from './commands/test-webview';
import { getRegisterCommand } from './utils';






export function activate(context: vscode.ExtensionContext) {
	const registerCommand = getRegisterCommand(context);

	registerCommand('sfc-builder.build', setupBuildCommand);
	registerCommand('sfc-builder.clear', setupClearCommand);
	registerCommand('sfc-builder.testWebView', setupTestWebViewCommand);

}

export function deactivate() {
	// 例如：如果你有全局定时器或全局事件监听器，需要在这里 clear

	console.log('插件失效');
}

